package cn.zhiran.org.service;

import cn.zhiran.org.domain.Department;
import cn.zhiran.org.query.DepartmentQuery;
import cn.zhiran.org.util.PageList;

import java.util.List;

public interface IDepartmentService {

    List<Department> loadAll();

    Department loadById(Long id);

    void delete(Long id);

    void update(Department department);

    void insert(Department department);

    //每页数据
    PageList<Department> queryData(DepartmentQuery query);

}
